package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.biz.service.TagService;

import com.wicket.okrbff.common.ro.OkrResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.*;
import com.wicket.okrframework.integration.FwBaseTagClient;
import com.wicket.okrframework.integration.dto.QueryTagListRespDto;
import com.wicket.okrframework.integration.dto.QueryTagListReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffTagDto;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrapp.integration.FwAppContTagRcordClient;
import com.wicket.okrapp.integration.dto.QueryContTagRcordListRespDto;
import com.wicket.okrapp.integration.dto.QueryContTagRcordListReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffContTagRcordDto;
/**
 * @author ： 
 * @date ： 
 *
 *
 * @version 1.0
 */
@Api(value = "Tag", tags = {"Tag"})
@RestController
// @RequestMapping("/oms/tag/")
public class TagController {
    @Autowired
    TagService tagService;
/**
   * B1-1查指标模板推荐标签列表(边界)
   * gen by moon at 10/24/2022, 9:55:21 PM
   */
    @PostMapping("/oms/tag/queryTargetTempRecommendTagListBorder")
    @ApiOperation(value = "B1-1查指标模板推荐标签列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryTargetTempRecommendTagListBorderRespDto> queryTargetTempRecommendTagListBorder(@RequestBody(required=false) @Validated BffQueryTargetTempRecommendTagListBorderReqDto reqDTO){
        return OkrResult.success(tagService.queryTargetTempRecommendTagListBorder(reqDTO));
    }
/**
   * B3-13查询指标模板标签记录列表(边界)
   * gen by moon at 10/8/2022, 3:08:33 AM
   */
    @PostMapping("/oms/tag/queryTargetTempTagRcordListBorder")
    @ApiOperation(value = "B3-13查询指标模板标签记录列表(边界)", response = OkrResult.class)
    public OkrResult<BffQueryTargetTempTagRcordListBorderRespDto> queryTargetTempTagRcordListBorder(@RequestBody(required=false) @Validated BffQueryTargetTempTagRcordListBorderReqDto reqDTO){
        return OkrResult.success(tagService.queryTargetTempTagRcordListBorder(reqDTO));
    }
    
}

